import request from '@/utils/request'

// 查询公寓设施关联列表
export function listTbapartfacilityref(query) {
  return request({
    url: '/apartment/tbapartfacilityref/list',
    method: 'get',
    params: query
  })
}

// 查询公寓设施关联详细
export function getTbapartfacilityref(id) {
  return request({
    url: '/apartment/tbapartfacilityref/' + id,
    method: 'get'
  })
}

// 新增公寓设施关联
export function addTbapartfacilityref(data) {
  return request({
    url: '/apartment/tbapartfacilityref',
    method: 'post',
    data: data
  })
}

// 修改公寓设施关联
export function updateTbapartfacilityref(data) {
  return request({
    url: '/apartment/tbapartfacilityref',
    method: 'put',
    data: data
  })
}

// 删除公寓设施关联
export function delTbapartfacilityref(id) {
  return request({
    url: '/apartment/tbapartfacilityref/' + id,
    method: 'delete'
  })
}
